﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.redshift
{
	// Token: 0x02000116 RID: 278
	public class TRedshiftLock : TCustomSqlStatement
	{
		// Token: 0x17000196 RID: 406
		// (get) Token: 0x06000908 RID: 2312 RVA: 0x00302D5C File Offset: 0x00300F5C
		// (set) Token: 0x06000909 RID: 2313 RVA: 0x00302D64 File Offset: 0x00300F64
		public virtual TObjectNameList TableList
		{
			get
			{
				return this.tableList;
			}
			set
			{
				this.tableList = value;
			}
		}

		// Token: 0x0600090A RID: 2314 RVA: 0x00302D6D File Offset: 0x00300F6D
		public TRedshiftLock(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstredshiftLock;
		}

		// Token: 0x0600090B RID: 2315 RVA: 0x00302D84 File Offset: 0x00300F84
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.tableList = (TObjectNameList)tdummy.list1;
			return 0;
		}

		// Token: 0x0600090C RID: 2316 RVA: 0x00302DC1 File Offset: 0x00300FC1
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0600090D RID: 2317 RVA: 0x00302DD1 File Offset: 0x00300FD1
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001236 RID: 4662
		private TObjectNameList tableList;
	}
}
